package jnpf.controller;

import jnpf.base.ActionResult;
import jnpf.model.meeting.dto.MeetingDTO;
import jnpf.service.MeetingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/bt/meeting")
public class MeetingController {

    @Autowired
    private MeetingService meetingService;

    @PostMapping("/listMeeting")
    public ActionResult listMeeting(@RequestBody MeetingDTO meetingDTO) {
        return ActionResult.success(meetingService.listMeeting(meetingDTO));
    }
}
